backgroundPixel
Type
property
Summary
Specifies which entry in the color table is used for an object's background color.
Syntax
set the backgroundPixel of <object> to <colorNumber>
Description
Use the backgroundPixel property to change the background color of an object when the bit depth of the screen is 8 bits (256 colors) or less.
The backgroundPixel property specifies which entry in the color table is used for an object's background color. It is similar to the backgroundColor property, but is specified as an entry in the current color table, rather than as a color reference.
The color table can be set by changing the colorMap property.
Examples
set the backgroundPixel of button 3 to field "Selected Color"
Related
property: borderPixel, pixels, backgroundColor
glossary: object, property, bit depth, bit, color reference, color table
keyword: integer
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile